#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPainter>
#include <QEvent>
#include <QMouseEvent>
#include <QMessageBox>
#include<QPixmap>

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

protected:
    void paintEvent(QPaintEvent *);
    void mousePressEvent(QMouseEvent *event);
private:
    bool  isBlack = true;
    int panWidth = 50;
    int rWidth = 20;
    int startX = 100;
    int startY = 100;
    int qizis[13][13];

    void xiaQiZi(int col, int row);//下棋子
    bool isOk(QList<int> values, int value);//是否赢了
};
#endif // WIDGET_H
